package com.usian.user.feign.WmUserFeign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
@RequestMapping("/api/v1/user")
public interface WemediaFeign {
    @PostMapping("/save")
    ResponseResult save(@RequestBody WmUser wmUser);

    @GetMapping("/findByName/{name}")
    WmUser findByName(@PathVariable("name") String name);

    @PostMapping("/update")
    ResponseResult update(@RequestBody WmUser wmUser);

}
